package com.keya.pull;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author huangshuqiang
 * @version 1.0
 * @description: TODO
 * @date 2022/8/31 14:15
 */
@NoArgsConstructor
@Data
@Accessors(chain = true)
@ApiModel(value = "PullStudyCronVO", description = "主动")
public class PullStudyCronVO implements Serializable {

    @ApiModelProperty(value = "pullStudyBlacklist 表达式")
    private String[] blacklist;

    @ApiModelProperty(value = "pullStudyWhitelist 表达式")
    private String[] whitelist;

    @NotNull(message = "状态不能为空")
    @ApiModelProperty(value = "状态：false-禁用，true-启用")
    private Boolean enabled;

    @NotNull
    @ApiModelProperty(value = "抓取时间点（单位：分钟），默认 8, 15, 30, 120")
    private int[] retryBackoff = new int[]{8, 15, 30, 120};

}
